package com.kingyea.app.market.client;

import com.kingyea.app.market.utils.BasePage;
import com.kingyea.mobilepolice.system.Result;
import com.kingyea.mobilepolice.user.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;


@FeignClient(value = "auth-server")
public interface UserServiceClient {

    /**
     * 不需要分页
     *
     * @param map
     * @return
     */
    @RequestMapping(value = "/user/list", method = RequestMethod.POST)
    Result<BasePage<User>> list(Map<String, Object> map);

    @RequestMapping(value = "/user/getCurrentUserInfo", method = RequestMethod.GET)
    Result<User> getCurrentUserInfo();
}
